import request from '@/utils/request.js'
// 获取列表
export const getIndexListApi = (params)=>{
    return request({
        url:'/house/index',
        method:'get',
        params
    })
}

// 获取详情
export const getIndexInfoApi = (id)=>{
    return request({
        url:'/house/index/'+id,
        method:'get',
    })
}

// 新增数据
export const addIndexApi = (data)=>{
    return request({
        url:'/house/index',
        method:'post',
        data
    })
}

// 修改数据
export const editIndexApi = (data)=>{
    return request({
        url:'/house/index/'+data.id,
        method:'put',
        data
    })
}

// 删除
export const delIndexApi = (id)=>{
    return request({
        url:'/house/index/'+id,
        method:'delete'
    })
}
